<%@ page language="java" pageEncoding="utf-8"%>
<%@ page import="com.XiGuaXiaoMe.dao.courseDao" %>
<%@ page import="com.XiGuaXiaoMe.entity.course" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">
    <base href="<%=basePath%>">
    <meta charset="UTF-8">
    <title>学生选课信息管理系统-修改课程信息</title>
    <link href="style_1.css" type="text/css" rel="stylesheet"/>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/CSS/form.css" />

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
    <link rel="stylesheet" type="text/css" href="styles.css">
    -->
    <link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>http://www.jq22.com/jquery/font-awesome.4.6.0.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/CSS/css/jquery.paginate.css" />
    <link rel="stylesheet" href="${pageContext.request.contextPath}/CSS/css/jquery.yhhDataTable.css" />
    <script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/JS/js/jquery.paginate.js" ></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/JS/js/jquery.yhhDataTable.js" ></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/JS/js/index.js" ></script>
    <link rel="stylesheet" href="${pageContext.request.contextPath}/CSS/toPage.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/font_cqbiizu5og9/iconfont.css">
    <title>自适应导航栏</title>
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/CSS/导航栏c.css" />

    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/CSS/table.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/CSS/mainpage.css" />

    <link href="<%= request.getContextPath()%>https://fonts.googleapis.com/css?family=Roboto+Condensed:300,300i,400,400i,700i" rel="stylesheet">


    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/CSS/ style_1.css" />


</head>

<body>

<iframe class="obj1" src="${pageContext.request.contextPath}/Student/head.html" frameborder="0" width="1300px" height="90px" scrolling="no"></iframe>

<div class="shell" style=" background-color: #bb3e03;">
    <a href="${pageContext.request.contextPath}/Student/userinformation.jsp" class="box" style="color: #faedcd;" ><i class="iconfont icon-liebiao"></i><span>个人信息</span></a>
    <a href="<%= request.getContextPath()%>/../Student课程表1.html" class="box" style="color: #faedcd;"><i class="iconfont icon-cangku"></i><span> 查看课表</span></a>
    <a href="/MyWeb/Student/coursefind" class="box"style="color: #faedcd;"><i class="iconfont icon-zhuti_tiaosepan"></i><span>选课</span></a>
    <a href="#" class="box"style="color: #faedcd;"><i class="iconfont icon-qianbao"></i><span>已选课程</span></a>
    <a href="#" class="box"style="color: #faedcd;"> <i class="iconfont icon-tupian"></i><span>已选学分</span></a>
    <a href="#" class="box"style="color: #faedcd;"><i class="iconfont icon-erweima"></i><span>院系要求</span></a>
    <a href="<%= request.getContextPath()%>../Student/日历3.html" class="box" style="color: #faedcd;"><i class="iconfont icon-dunpaibaoxianrenzheng"></i><span>日历</span></a>
    <a href="#" class="box"style="color: #faedcd;"><i class="iconfont icon-dengchu"></i><span>退出系统</span></a>
</div>

        <div class="box1">
            <div class="form3">
                <div class="form_1">
                    <form action="/MyWeb/Teacher/serDoUpdateCou" class="smart-green" method="get"
                    style="left: 371px;">
                        <%
                            courseDao selectone = new courseDao();
                            course cou = selectone.selectCou(Integer.parseInt(request.getParameter("xuhao")));
                            if(cou!=null){
                        %>



                            <label><span>课程编号 :</span>
                                <input  class="text" type="text" name="id" value="<%= cou.getId() %>" readonly="true"/>
                                <div class="error-msg"></div>
                            </label>
                        <label><span>课程名称 :</span>
                            <input  class="text" type="text" name="name" value="<%= cou.getName() %>"/>
                            <div class="error-msg"></div>
                        </label>
                        <label><span>课程教师 :</span>
                            <td><input  class="text" type="text" name="teacher" value="<%= cou.getTeacher() %>"/>
                            <div class="error-msg"></div>
                        </label>
                        <label><span>上课时间 :</span>
                            <input  class="text" type="text" name="time" value="<%= cou.getTime() %>"/>
                            <div class="error-msg"></div>
                        </label>
                        <label><span>上课地点 :</span>
                            <input  class="text" type="text" name="place" value="<%= cou.getPlace() %>"/>
                            <div class="error-msg"></div>
                        </label>
                        <label><span>课容量 :</span>
                            <input  class="text" type="text" name="rongliang" value="<%= cou.getRongliang() %>"/>
                            <div class="error-msg"></div>
                        </label>
                        <label><span>课序号 :</span>
                            <input  class="text" type="text" name="xuhao" value="<%= cou.getXuhao() %>"/></td>
                            <div class="error-msg"></div>
                        </label>
                        <label><span>&nbsp;</span><input type="submit" class="button" value="确定" /></label>

                           <%-- <tr><td>课程编号</td> <td><input  class="text" type="text" name="id" value="<%= cou.getId() %>" readonly="true"/></td></tr>
                            <tr><td>课程名称</td> <td><input  class="text" type="text" name="name" value="<%= cou.getName() %>"/></td></tr>
                            <tr><td>课程教师</td> <td><input  class="text" type="text" name="teacher" value="<%= cou.getTeacher() %>"/></td></tr>
                            <tr><td>上课时间</td> <td><input  class="text" type="text" name="time" value="<%= cou.getTime() %>"/></td></tr>
                            <tr><td>上课地点</td> <td><input  class="text" type="text" name="place" value="<%= cou.getPlace() %>"/></td></tr>
                            <tr><td>课容量</td> <td><input  class="text" type="text" name="rongliang" value="<%= cou.getRongliang() %>"/></td></tr>
                            <tr><td>课序号</td> <td><input  class="text" type="text" name="xuhao" value="<%= cou.getXuhao() %>"/></td></tr>--%>
                           <%-- <tr><td></td><td><input  class="button" type="submit" value="确认修改"/> <input  class="btn" type="reset" value="取消修改"/>  </td></tr>
--%>
                            <%
                                }/*else {request.getRequestDispatcher("serSelectCou?page="+null+"").forward(request, response);	}*/
                            %>

                        </table>
                    </form>
                </div>
            </div>

        </div>
    </div>
</div>
</body>
</html>
